<#assign hasActionErrors = actionErrors.size() != 0/>
<#assign hasActionMessages = actionMessages.size() != 0/>

<#if hasActionErrors || hasActionMessages>

<table cellpadding=0 cellspacing=0 width=100% border=0>
    <tr>
        <#if hasActionMessages>
            <td width=24 style="padding-top:0px;"><img src="images/icons/24x24/info.png"></td>
        <#elseif hasActionErrors>
            <td width=24 style="padding-top:0px;"><img src="images/icons/24x24/error.png"></td>
        <#else>
            <td width=24 style="padding-top:0px;"><img src="images/icons/24x24/error.png"></td>
        </#if>

        <td width=100% style="padding-left:2px;">
            <#if hasActionMessages>
                <div style="border-bottom:solid 1px #aeadad" class="testengine-ui-messagebox-header">Info message</div>
            <#elseif hasActionErrors>
                <div style="border-bottom:solid 1px #aeadad" class="testengine-ui-messagebox-header">Error message</div>
            <#else>
                <div style="border-bottom:solid 1px #aeadad" class="testengine-ui-messagebox-header">Unknown error</div>
            </#if>
        </td>
    </tr>
    <tr>
        <td></td>
        <td width=100% style="padding-left:4px;">
            <div class="testengine-ui-messagebox-description">
                <#if hasActionMessages>
                    <#list actionMessages as messages>
                        <span class="messagebox-messageLabel">*&nbsp;${messages?html}</span><#t/><br/>
                    </#list>
                </#if>
                <#if hasActionErrors>
                    <#list actionErrors as error>
                <span class="messagebox-errorLabel">*&nbsp;${error?html}</span><#t/><br/>
                </#list>
                </#if>
            </div>
        </td>
    </tr>
</table>
</#if>